package com.cabal.war.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cabal.common.constants.SystemConstants;
import com.cabal.config.DS;
import com.cabal.war.entity.CabalLordOfWarPoint;
import com.cabal.war.entity.CabalWarRewardItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface WarMapper extends BaseMapper<CabalLordOfWarPoint> {

    @DS(value = SystemConstants.DS_KEY_SERVER01)
    int countWarSendRecord();

    @DS(value = SystemConstants.DS_KEY_SERVER01)
    List<CabalLordOfWarPoint> searchWarSendRecordList();

    void execSendReward(Map<String, Object> params);

    @DS(value = SystemConstants.DS_KEY_SERVER01)
    void batchUpdateSendStatus();

    @DS(value = SystemConstants.DS_KEY_SERVER01)
    int countWarResultRecord(@Param("todayDate") String todayDate);

    void execSendRewardByItem(Map<String, Object> params);

    @DS(value = SystemConstants.DS_KEY_SERVER01)
    List<CabalWarRewardItem> searchCabalWarRewardItemList();


}
